package com.spring.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class LoginUser implements Serializable {
    private String acount ;
    private String password ;

    Map getMap(){
        HashMap<String,String> map = new HashMap<>() ;
        map.put("acount",acount);
        map.put("password",password);
        return map ;
    }

    LoginUser(Map map){
        acount = (String)map.get("acount") ;
        password = (String)map.get("password") ;
    }
}
